| Conditions | 3 |
| Total Lines | 11 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { EMPTY_ARRAY } from "./consts" |
||
| 11 | |||
| 12 | function dehash<K extends string>(source: Record<K, unknown>, keys: string[] = $keys(source)) :string[] { |
||
| 13 | for (let i = keys.length; i--;) { |
||
| 14 | const key = keys[i] as K |
||
| 15 | , value = source[key] |
||
| 16 | |||
| 17 | if (typeof value === "string") |
||
| 18 | keys[i] = value |
||
| 19 | } |
||
| 20 | |||
| 21 | return keys |
||
| 22 | } |
||
| 56 | } |